const mongoose=require('./connection')
//上面mongoose在旁边的connection那引用过了
const schema=new mongoose.Schema({
    userid:String,
    goodsid:String,
    goodsnumber:Number
})

module.exports = mongoose.model('cart', schema,'cart') //第三个数据就是cart名字